<?php
namespace app\admin\controller;

use think\Controller;

class Menu extends Controller
{
    public function index()
    {
        $menu = [
            ['id'=>1,'title'=>'系统管理','sub'=>[
                ['id'=>'3', 'title'=>'权限列表','path'=>'/admin/permission']
            ]],
            ['id'=>2,'title'=>'用户管理','sub'=>[
                ['id'=>'4', 'title'=>'用户列表','path'=>'/admin/user']
            ]]
        ];
        $this->success("获取目录成功",'',$menu);
    }

    public function read(){

    }
}
